package cn.gjculture.shopping.api.service;

import cn.gjculture.shopping.api.entity.*;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;

public interface PayService {

    int insert(Pay pay);

    boolean refund(Order o);

    int payBack(String code, String msg, JSONObject responseParam);

    String unifyPay(UnifyParam unifyParam);

    List<SubAccount> querySubAccount(String customerId);

    String transfer(List<SupplierSubAccount> s);

    void quartzSupplierTransfer();

    List<Pay> queryByCustomer(Customer customerNo);

    List<Map> querySubAccountByCustomerNo(String customerNo, String consumerNo, Integer come);

    Map queryWithdraw(Long customerNo);

    int updateSubAccountByOrderId(SubAccount sub);

    int updateSupplierSubAccount(SupplierSubAccount supplierSubAccount);

    int refundBack(String code, String msg, JSONObject responseParam);

    int withdraw(String token, JSONObject data, Return ret);

    int withdraw(String token, String withdrawAmount, String merchantId, Return ret);

    List<Map> queryWithdrawSystem();
}
